home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / dev.fmt / raid.man < prev    next >
Encoding:
Text File  |  1992-09-05  |  4.6 KB  |  201 lines

  1.  
  2.  
  3.  
  4. RAID                         Devices                         RAID
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NNAAMMEE
  11.      raid - Devices used to send ioctl's to RAID devices.
  12.  
  13. SSYYNNOOPPSSIISS
  14.      ##iinncclluuddee <<ddeevv//rraaiidd..hh>>
  15.  
  16. _________________________________________________________________
  17.  
  18.  
  19. OOVVEERRVVIIEEWW
  20.      This document describes the configuration and management  of
  21.      raid devices.
  22.  
  23.  
  24. TTHHEE RRAAIIDD CCOONNFFIIGGUURRAATTIIOONN FFIILLEE
  25.      An example RAID configuration file is as follows:
  26.  
  27. #                                              R L S N
  28. #              512B        32KB      323MB
  29. #numRow numCol logSectSize sectPerSU SUPerDisk parityConfig logDev(d,u,offset)
  30. 1       4      9           64        9859      L            516 5128 0
  31. 516    7176
  32. 516    7192
  33. 516    7208
  34. 516    7224
  35.  
  36.      Lines starting with '#' are considereded comments.  Comments
  37.      can only occure at the BEGINNING of the configuration file.
  38.  
  39.      numRow,
  40.           The number of rows and columns of  disks  in  the  disk
  41.           array.   Parity  is  computed accross the disks in each
  42.           row.
  43.  
  44.      logSectSize
  45.           The log base 2 of the sector size.  A 9 =>  2^9  =  512
  46.           byte sectors.
  47.  
  48.      sectPerSU
  49.           The number of sectors per stripe unit.  The stripe unit
  50.           is  the  amount  of  data placed on a given disk before
  51.           data is placed on the next disk.
  52.  
  53.      SUPerDisk
  54.           The number of stripe units per disk.
  55.  
  56.      parityConfig
  57.           The parity configuration to use.  L  =>  left-symmetric
  58.           (the  best  all-around choice), R => right-symmetric, N
  59.           => RAID level 4 placement and S => do not compute  par-
  60.           ity; i.e., only data striping.
  61.  
  62.  
  63.  
  64.  
  65. Sprite v.1.0       Printed:  September 4, 1992                  1
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. RAID                         Devices                         RAID
  73.  
  74.  
  75.  
  76.      logDev
  77.           The type, unit and device offset for the log disk.   By
  78.           specifying different offsets, the same disk can be used
  79.           as the log for several disk arrays.  If the parity con-
  80.           figuration  is  S,  logging  is not neccessary and this
  81.           field should be set to -1 -1 -1 instead of 516  5128  0
  82.           in the above example.
  83.  
  84.      The rest of the file contains a list of the  type  and  unit
  85.      number of each disk in the disk array.
  86.  
  87.  
  88. AADDDDIINNGG AA NNEEWW RRAAIIDD DDEEVVIICCEE
  89. Create a new raid device ($x = new raid device number):
  90. --  If necessary, create:
  91.         fsmakedev -d 10 -u $x /dev/raid$x
  92.         fsmakedev -d 10 -u $x /dev/raid${x}a
  93. --  Create raid configuration file /boot/cmds/RAID$x.config.
  94. --  Issue IOC's to configure new device:
  95.     If parityConfig == 'S' (i.e. no parity, only data striping)
  96.         /boot/cmds/raidioc /dev/raid$x reconfig /boot/cmds/RAID$x.config
  97.     else
  98.         /boot/cmds/raidioc /dev/raid$x reconfig /boot/cmds/RAID$x.config
  99.         /boot/cmds/raidioc /dev/raid$x savestate
  100.         /boot/cmds/raidioc /dev/raid$x hardinit 0 -1
  101.         /boot/cmds/raidioc /dev/raid$x enablelog
  102.         /boot/cmds/raidioc /dev/raid$x unlock
  103.     endif
  104. --  Add commands to /hosts/<machine name>/bootcmds to restore existing
  105.     raid device on system boots.
  106.     If parityConfig == 'S' (i.e. no parity, only data striping)
  107.         /boot/cmds/raidioc /dev/raid$x reconfig /boot/cmds/RAID$x.config
  108.     else
  109.         /boot/cmds/raidioc /dev/raid$x restorestate <logDev(d,u,offset)> &&         /boot/cmds/raidioc /dev/raid$x enablelog                         &&         /boot/cmds/raidioc /dev/raid$x unlock
  110.     endif
  111. --  Add new device to ~eklee/bin/paritycheckraid if automatic periodic
  112.     parity checks are desired.
  113.  
  114.  
  115. AADDDDIINNGG AA NNEEWW RRAAIIDD LLFFSS FFIILLEE
  116. --  Find out numSector and dataBytesPerStripe (printed to /dev/syslog).
  117.         /boot/cmds/raidioc /dev/raid$x print
  118. --  labeldisk -w /dev/raid$x            # use numSector info here
  119. --  mklfs -segAlignment <dataBytesPerStripe> /dev/raid0
  120. --  If necessary create:
  121.         cd /
  122.         ln -r /r$x
  123. --  Mount file system:
  124.         prefix -M /dev/raid$x -l /r$x
  125. --  Add commands to /hosts/<machine name>/bootcmds to automatically
  126.     export file system.
  127.         prefix -M /dev/raid$x -l /r$x
  128.  
  129.  
  130.  
  131. Sprite v.1.0       Printed:  September 4, 1992                  2
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138. RAID                         Devices                         RAID
  139.  
  140.  
  141.  
  142. SSEEEE AALLSSOO
  143. KKEEYYWWOORRDDSS
  144.      raid command, raid device
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197. Sprite v.1.0       Printed:  September 4, 1992                  3
  198.  
  199.  
  200.  
  201.